{% extends "main/index.html" %}

{% load i18n %}
{% block title %}
<title>:: Sirogi - List Documents ::</title>
{% endblock %}
{% block content %}
    <div class="titulo_contenedor">
	List Documents
    </div>
    <div class="cuerpo_contenedor">
	    {% if docs %}
		<table>
		    <tr>
				<th>{% trans "Doc Number" %}</th>
				<th>{% trans "Owner" %}</th>
				<th>{% trans "Date" %}</th>
				<th>{% trans "State" %}</th>
		    </tr>
		    {% for d in docs %}
		    <tr>
				<td>{{d.numDoc}}</td>
				<td>{{d.owner}}</td>
				<td>{{d.date}}</td>
				<td>{{d.state.Desc}}</td>
				<td> <a href="/documents/view_document/{{d.Get_numDoc}}/comments">View</a></td>
		    </tr>
		    {% endfor %}
		</table>
	    {% else %}
		<p class="error">
		    No hay documentos disponibles.
		</p>
	    {% endif %}
	</div>
	<div class="fondo_contenedor">
	</div>
{% endblock %}
